/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @file  q21xx.h
 * @brief Semidrive. AUTOSAR 4.3.1 MCAL EthTrcv plugins.
 */

#ifndef Q21XX_H
#define Q21XX_H

#ifdef __cplusplus
extern "C" {
#endif

#include "EthTrcv.h"

// 1000 BASE-T1 Operating Mode
#define MRVL_88Q211X_MODE_LEGACY    0x06B0u
#define MRVL_88Q211X_MODE_DEFAULT   0x0000u
#define MRVL_88Q211X_MODE_ADVERTISE 0x0002u

// Current Speed
#define MRVL_88Q2112_1000BASE_T1    0x0001u
#define MRVL_88Q2112_100BASE_T1     0x0000u

#if ETHTRCV_Q21XX_SUPPORTED == STD_ON
extern const EthTrcv_Ops_Type  marvell_q21xx_ops;
#endif

#ifdef __cplusplus
}
#endif

#endif

